<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="format-detection" content="telephone=no">
  <link rel="stylesheet" href="style.css">
  <link rel="stylesheet" href="img/af.css">
   <script src="functions.js"></script>
  <title>Anytime Fitness</title>
</head>

<body>
  <div class="container">
    <div class="con_one">
      <img src="img/img01.png" class="img_con" />
    </div>
    <div class="con_two">
      <img src="img/img02.png" class="img_con" />
      <p>长按识别二维码·加关注</p>
    </div>
    <div class="con_qr">
      <img src="" alt="" class="img_con" id="qr_img" />
    </div>
  </div>
  <script src="app.js"></script>
  <script type="text/javascript">
  window.onload=function(){
      var _request=GetRequest();
      console.log(_request['ticket'])
      if(_request['ticket']=='' || _request['ticket']=='undefined'){
        alert('非法操作！'); 
      }
      document.getElementById('qr_img').src='https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket='+_request['ticket'];  
      if(window.parent.length>0) {
            if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) { //判断iPhone|iPad|iPod|iOS
              //alert(navigator.userAgent); 
              window.parent.location=location; 
            } 
      }
  }
</script>
</body>

</html>
